import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import './assets/main.scss'
import router from './router/index'
// Pinia默认是内存存储，当刷新浏览器的时候会丢失数据。Persist插件可使数据持久化存储
import {createPinia} from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import locale from 'element-plus/dist/locale/zh-cn.js'
const app = createApp(App)
const pinia = createPinia()
const persist = createPersistedState()
pinia.use(persist)
// 显示中文
app.use(ElementPlus,{locale})
app.use(router)
app.use(pinia)
app.mount('#app')




// app.use(
//     ElementPlus,
//     router
// )
// app.mount('#app')